package homework.test1

object SquareList {
  def main(args: Array[String]): Unit = {
    val squares = (20 to 119).map(num => num * num).toList

    val reversedSquares = squares.reverse

    println("倒序输出的平方数列表：")
    reversedSquares.foreach(println)
  }

}
